%{
    _showLabel=_showLabel?true:_showLabel;
    if(_method){
        separator = _href.toString().indexOf('?')!=-1?"&":"?";
        _href = _href.toString()+separator.toString()+"x-http-method-override="+_method;
    }
    hiddenForm="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST';";
    if(_app){
        hiddenForm=hiddenForm+" f.setAttribute('data-app','"+_app+"');";
    }
    hiddenForm=hiddenForm+" f.action = this.href;f.submit();";
    serializedAttrs  = play.templates.FastTags.serialize(_attrs,"href","modal","method","actionCode","class","title").raw();
      if(_actionCode){
                actions=framework.utils.SecurityUtil.getUserActions();
       }
}%
#{if !_actionCode||actions.indexOf(_actionCode)>-1}
<a href="${_modal?'':_href?_href:'javascript:;'}"  title="${_arg}"
#{if _method && _method.toUpperCase()=='DELETE'}
    onclick="if (confirm('您确定要删除吗？')){ ${hiddenForm} };return false;"
#{/if}
#{elseif _method && _method.toUpperCase()=='PUT'}
    onclick="${hiddenForm}return false;"
#{/elseif}  
${serializedAttrs}><i class="${_class?_class:''}">
#{if _showLabel==true}
    ${_label?_label+"":""}
#{/if}
</i></a>
#{/if}